Home:ALL Converter>What does flatten_parameters() do?

What does flatten_parameters() do?

Ask Time:2018-11-10T02:38:37         Author:floyd

Json Formatter

I saw many Pytorch examples using flatten_parameters in the forward function of the RNN

self.rnn.flatten_parameters()

I saw this RNNBase and it is written that it

Resets parameter data pointer so that they can use faster code paths

What does that mean?

Author:floyd,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/53231571/what-does-flatten-parameters-do
yy